cmake_minimum_required(VERSION 2.8.3)
project(agitr)

find_package(catkin REQUIRED COMPONENTS roscpp geometry_msgs turtlesim std_srvs)

catkin_package(
#  INCLUDE_DIRS include
#  LIBRARIES agtir
#  CATKIN_DEPENDS other_catkin_pkg
#  DEPENDS system_lib
)

###########
## Build ##
###########

include_directories(include ${catkin_INCLUDE_DIRS})

## Declare a cpp executable
add_executable(hello src/hello.cpp)
add_executable(pubvel src/pubvel.cpp)
add_executable(subpose src/subpose.cpp)
add_executable(reverse_cmd_vel src/reverse_cmd_vel.cpp)
add_executable(set_bg_color src/set_bg_color.cpp)
add_executable(pubvel_with_max src/pubvel_with_max.cpp)
## Specify libraries to link a library or executable target against
target_link_libraries(hello ${catkin_LIBRARIES})
target_link_libraries(pubvel ${catkin_LIBRARIES})
target_link_libraries(subpose ${catkin_LIBRARIES})
target_link_libraries(reverse_cmd_vel ${catkin_LIBRARIES})
target_link_libraries(set_bg_color ${catkin_LIBRARIES})
target_link_libraries(pubvel_with_max ${catkin_LIBRARIES})


add_executable(spawn_turtle
  src/spawn_turtle.cpp
)
add_dependencies(spawn_turtle ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(spawn_turtle
  ${catkin_LIBRARIES}
)

add_executable(pubvel_toggle
  src/pubvel_toggle.cpp
)
add_dependencies(pubvel_toggle ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(pubvel_toggle
  ${catkin_LIBRARIES}
)